NAF.connection.subscribeToDataChannel(dataType_eggFound, function (senderId, dataType, data, targetId) {
    console.error(data);
        let finishDlgElm = document.querySelector("#finishDialog")
        finishDlgElm.setAttribute("style", "display: block");
        setTimeout(() => {
            finishDlgElm.setAttribute("style", "display: none");
        }, 3000);
        // 其他用户获得彩蛋的时间
        const timeCounter = document.querySelector('#counter');
        timeCounter.textContent = data.time;
        // 获得彩蛋的用户id
        const userId = document.querySelector('#userId');
        userId.textContent = data.userId;
        // 彩蛋的数量
        const eggNumberEle = document.querySelector('#eggNumber');
        eggNumberEle.textContent = data.endNumber;

        const eggFoundNumberEle = document.querySelector('#foundEggNumber');
        eggFoundNumberEle.textContent = data.foundEggNumber;


});
